package Demo01.Tesk.Demo02;

import java.util.ArrayList;
import java.util.Collections;

public class Test {
    public static void main(String[] args) {
        ArrayList<Student> list = new ArrayList<>();
        Student s1 = new Student("谢霆锋",85);
        Student s2 = new Student("章子怡",63);
        Student s3 = new Student("刘亦菲",77);
        Student s4 = new Student("黄晓明",33);
        Student s5 = new Student("岑小村",92);
        list.add(s1);
        list.add(s2);
        list.add(s3);
        list.add(s4);
        list.add(s5);

        for (int i = 0; i <list.size() ; i++) {
            Student num = list.get(i);
        }

//        Innermethod(new Inner() {
//            @Override
//            public void score(String name, int score) {
//                String s
//
//            }
//        });
//
//        Collections.sort(list<Student> list, Comparator<Student> c);
//
//    }
//    public static void Innermethod(Inner I,String name,int score){
//         I.score(name,score);
    }
}

